import {createRouter, createWebHistory} from "vue-router";

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        //这里放入路由，例如：
        {
            name: '基本布局',
            path: '/',
            component: () => import('../Layout/BasicLayout.vue'),
            children: [
                {
                    name: '首页',
                    path: '/',
                    component: () => import('../pages/home.vue')
                },
                {
                    name: '队伍页',
                    path: '/team',
                    component: () => import('../pages/team.vue'),
                },
                {
                    name: '个人信息页',
                    path: '/personInfo',
                    component: () => import('../pages/personInfo.vue')
                },
                {
                    name: '信息搜索页',
                    path: '/search',
                    component: () => import('../pages/searchPage.vue')
                },
                {
                    name: "信息修改页面",
                    path: '/editInfo',
                    component: () => import('../pages/editInfo.vue')
                },
                {
                    name: "用户搜索结果页面",
                    path: '/searchResult',
                    component: () => import('../pages/searchResult.vue')
                },
                {
                    name: "队伍详情页",
                    path: '/teamDetail',
                    component: () => import('../pages/teamDetail.vue')
                }


            ]


        },
        {
            name: '登录页面',
            path: '/login',
            component: () => import('../pages/login.vue')
        }


    ]
})

export default router;